package com.easy.work.bean;

import com.easy.work.db.MessageBean;

/**
 * @author zhangfeng
 * @date 2018/01/05
 * @desc
 */

public class MsgDetailBean {

    public String title;
    public String first;
    public String firstContent;
    public String second;
    public String secondContent;
    public String third;
    public String thirdContent;
    public String fourthContent;
    public String fifthContent;

    public MsgDetailBean(MessageBean msgBean) {
        // 1 面试消息  2 录用消息
        if (msgBean.getMsgType() == 1) {
            first = "面试时间";
            firstContent = msgBean.getTime();
            second = "面试地点";
            secondContent = msgBean.getAddress();
            third = "公司名称";
            thirdContent = msgBean.getCompanyName();
        } else {
            first = "公司名称";
            firstContent = msgBean.getCompanyName();
            second = "上班地址";
            secondContent = msgBean.getAddress();
            third = "上班时间";
            thirdContent = msgBean.getTime();
        }
        title = msgBean.getMsgTypeText();
        fourthContent = msgBean.getMaterial();
        fifthContent = msgBean.getPhone();
    }
}
